@charset "utf-8";

* {
  box-sizing: border-box;
  overscroll-behavior: contain; /* 防止父级过度滚动 */
}

:root {
  scroll-behavior: smooth;
}

html,
body,
h1,
h2,
h3,
h4,
p,
form,
button,
input,
select,
ul,
ol,
dl,
dd {
  padding: 0;
  margin: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-size: 14px;
  font-family: Source Han Sans-Regular, Source Han Sans, sans-serif;
  /* 修正移动设备字体变化 */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

ul,
li {
  list-style: none;
}

a {
  color: inherit;
  outline: none;
  text-decoration: none;
  background: transparent; /* 修正win8系统IE连接灰色背景 */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

a:active {
  outline: 0;
  text-decoration: none;
}

/* 去掉点击链接时的虚线外框 */
a:focus {
  outline-style: none;
  -moz-outline-style: none;
}

img {
  border: 0;
  display: block;
  object-fit: cover;
  -ms-interpolation-mode: bicubic; /* ie7 解决图片缩放失真问题 */
}

p,
span {
  color: inherit;
  word-wrap: break-word;
  word-break: break-all;
}

button {
  border: none;
  outline: none;
  background: none;
}

/** 去掉 input 默认样式 **/

input {
  border: none;
  outline: none;
}

input::-webkit-search-cancel-button {
  display: none;
}

input[type=search]::-ms-clear {
  display: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}

input,
textarea {
  background-color: transparent;
}

/* 去掉 textarea 默认样式 */
textarea {
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
}